Skip to content

Conversation

@steffenlarsen
Copy link
Contributor

@steffenlarsen steffenlarsen commented Aug 15, 2025

In relation to the clarification in KhronosGroup/SYCL-Docs#861, the implementation of platform::get_devices does not work correctly for custom and automatic. This commit fixes this by ensuring these return the devices with custom type and the default device respectively.

Additionally, it adds the UR_DEVICE_TYPE_CUSTOM to UR and adds proper handling for UR_DEVICE_TYPE_DEFAULT in the UR OpenCL adapter.

In relation to the clarification in
KhronosGroup/SYCL-Docs#861, the implementation
of `platform::get_devices` does not work correctly for `custom` and
`automatic`. This commit fixes this by ensuring these return the
devices with custom type and the default device respectively.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested review from a team as code owners August 15, 2025 12:22
@steffenlarsen steffenlarsen changed the title [SYCL] Fix platform::get_devices [SYCL][UR][OpenCL] Fix platform::get_devices Aug 15, 2025
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested a review from a team as a code owner August 18, 2025 04:54
@steffenlarsen steffenlarsen changed the title [SYCL][UR][OpenCL] Fix platform::get_devices [SYCL][UR][OpenCL][L0] Fix platform::get_devices Aug 18, 2025
Copy link
Contributor

@pbalcer pbalcer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UR lgtm.

@steffenlarsen steffenlarsen merged commit ea192fd into intel:sycl Aug 19, 2025
36 checks passed
@steffenlarsen steffenlarsen deleted the steffen/fix_platform_get_devices branch August 19, 2025 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants